package org.seckill.dto;

/**
 * Created by lenovo on 2017/7/6.
 */
//封装json结果
public class SeckillResult<T> {

    private boolean success;

    private T data;

    private String errorInfo;

    public SeckillResult(boolean success, String errorInfo) {
        this.success = success;
        this.errorInfo = errorInfo;
    }

    public SeckillResult(boolean success, T data) {

        this.success = success;
        this.data = data;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getErrorInfo() {
        return errorInfo;
    }

    public void setErrorInfo(String errorInfo) {
        this.errorInfo = errorInfo;
    }
}
